package cn.htu.edu.service;

import cn.htu.edu.common.ResponseModel;
import cn.htu.edu.entity.Users;
import cn.htu.edu.entity.baseEntity.Userz;
import cn.htu.edu.payload.request.orders.Order;
import cn.htu.edu.payload.request.orders.OrdersPerson;
import cn.htu.edu.payload.request.users.User;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dakai
 * @since 2024-05-10
 */
public interface IUsersService extends IService<Users> {

    /**
     * 实现层查询全部Users数据
     * @return
     */
    List<Users> getAllUsers();

    /**
     * 实现层新增Users数据
     * @param userz
     * @return
     */
    ResponseModel saveUsers(Userz userz);

    /**
     * 分页带查询条件
     * @param request
     * @return
     */
    IPage<Users> getSelectUsers(User request);

    /**
     * 分页带查询条件
     * @param request
     * @return
     */
    IPage<Users> getSelectUsers1(User request);

    /**
     * 修改
     * @param order
     * @return
     */
    ResponseModel updateOrders(Order order);

    /**
     * 修改
     * @param request
     * @return
     */
    ResponseModel updateOrdersPerson(OrdersPerson request);
}
